package com.esri.core.internal.tasks.ags;

import com.esri.core.internal.tasks.TaskListener;
import com.esri.core.io.UserCredentials;
import com.esri.core.portal.PortalItem;

/* loaded from: classes.dex */
public class ab extends com.esri.core.internal.tasks.d<PortalItem> {
    private static final long serialVersionUID = 1;

    public ab(al alVar, String str, String str2, UserCredentials userCredentials) {
        this(alVar, str, str2, userCredentials, null);
    }

    public ab(al alVar, String str, String str2, UserCredentials userCredentials, TaskListener<PortalItem> taskListener) {
        super(alVar, a(str, str2), userCredentials, taskListener);
    }

    private static final String a(String str, String str2) {
        return str + "/content/items/" + str2;
    }

    @Override // com.esri.core.internal.tasks.a
    /* renamed from: a */
    public PortalItem execute() throws Exception {
        return PortalItem.fromJson(com.esri.core.internal.io.handler.h.a(this.serviceURL, this.actionInput.generateRequestParams(), getServiceCredentials()), ((al) getActionInput()).a);
    }
}
